import { el, setAttr, setChildren, setStyle } from "redom";

export function createCom(tagType, attrs) {
  let _el = el(tagType, attrs)
  // console.log(_el.className)
  _el.className = _el.className.trim()
  return {
    el: _el,
    setAttr,
    setChildren,
    setStyle
  }
}

export function getDomId(v) {
  return v
}

export function getDomSel(v) {
  return `[sid='${v}']`
}


